package com.smart.manager.pop.entities.assembler;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 分销规则对象
 * @author Administrator
 */
@ApiModel(value = "问答内容")
@Data
public class Answer implements Serializable {

    @ApiModelProperty(value = "问题标题")
    @NotNull(message = "问题标题 不能为空")
    private String text;

    @ApiModelProperty(value = "回答内容")
    @NotNull(message = "回答内容 不能为空")
    private List<String> cont;

    @ApiModelProperty(value = "问题类型")
    @NotNull(message = "问题类型 不能为空")
    private String type;

    @ApiModelProperty(value = "回答内容")
    @NotNull(message = "回答内容 不能为空")
    private List<Content> options;

    @Data
    @Accessors(chain = true)
    public static class Content implements Serializable {
        @ApiModelProperty(value = "问题标题")
        private String title;

        @ApiModelProperty(value = "内容")
        private String value;

        private Boolean selected;


    }

}
